package nccloud.bs.ct.bg;

import nc.bs.pub.pa.PreAlertObject;
import nc.bs.pub.taskcenter.BgWorkingContext;
import nc.bs.pub.taskcenter.IBackgroundWorkPlugin;
import nc.vo.pub.BusinessException;
import nccloud.bs.ct.op.EmailDetailOp;

public class EmailDetailBg implements IBackgroundWorkPlugin{

	@Override
	public PreAlertObject executeTask(BgWorkingContext context) throws BusinessException {
		try {
			
			Integer bg_addMit = Integer.parseInt((String) context.getKeyMap().get("bg_addMit"));
			
			new EmailDetailOp().exec(bg_addMit);
		} catch (Exception e) {
			throw new BusinessException(e);
		}
		return null;
	}

}
